﻿<%@ Page Language="C#" MasterPageFile="~/WorkFlow/WFConfigure/MpWorkflow.master" AutoEventWireup="true" Inherits="WorkFlow_WFTaskSurrogate_TaskSurrogateList" Title="Untitled Page" Codebehind="TaskSurrogateList.aspx.cs" %>
<%@ MasterType VirtualPath="~/WorkFlow/WFConfigure/MpWorkflow.master" %>
<%@ Import Namespace="Honestysoft.Workflow.Model" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<link href="../Styles/control.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../Scripts/control.js"></script>

<ul id="maintab" class="shadetabs" style="height:20px;">
<li class="selected"><a href="#default"  >任务委托</a></li>
<li ><a href="<%=WorkflowApply.Home %>WorkFlow/WFTaskSurrogate/ToMeTaskSurrogateList.aspx"  >被委托任务</a></li></ul>

    <div id="ajaxcontentarea" class="contentstyle">

<div class="query_area" style="text-align:right;">
    <asp:Button ID="btnActive" Text="激 活" style="display:none" runat="server" OnClick="btnActive_Click" class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" />
      <asp:Button ID="btnCancel" Text="作 废" style="display:none" runat="server" OnClick="btnCancel_Click" class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'"  />
      <asp:Button ID="btnResume" Text="恢 复"  style="display:none" runat="server" OnClick="btnResume_Click" class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" />
    <input type="button" class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" onclick='javascript:mOpenDlg("<%=WorkflowApply.Home%>WorkFlow/WFTaskSurrogate/TaskSurrogateEdit.aspx",550,280,"<%=WorkflowApply.Home%>","新增任务委托")' name="Submit" value="新 增" id="Button1" />
      <asp:Button ID="btnDel" Text="删 除" OnClick="btnDel_Click" OnClientClick="return mCanDelete('chkID','请选择要删除的记录！');"   runat="server" class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" />
      
</div>

<div style="padding-top:4px">

    <table width="100%"  border="1" cellspacing="0" cellpadding="1" id="tGrid" class="t1">
  <thead>
    <th style="width:30px" align="center" >
        <input type="checkbox" name="chkAll" value="checkbox" onclick='javascript:mCheckAll(this,"chkID")' />
    </th>
    <th style="width:120px" align="center">
        创建时间</th>
    <th style="width:120px" align="center">生效时间</th>
    <th style="width:120px" align="center">终止时间</th>
    <th align="center">
        工作流单据</th>
    <th style="width:80px" align="center">被委托人</th>
    <th style="width:60px" align="center">状态</th>    
    <th style="width:80px" align="center">操作</th>
  </thead>
  <asp:Repeater ID="Repeater1" runat="server" >
  <ItemTemplate>
  <tr>
    <td align="center" >
        <input type="checkbox" name="chkID" id="chk<%# DataBinder.Eval(Container.DataItem,"ID") %>"  value="<%# DataBinder.Eval(Container.DataItem,"ID") %>" >
    </td>
    <td align="center"><%# string.Format("{0:yyyy-MM-dd HH:mm}", DataBinder.Eval(Container.DataItem, "GranterTime"))%></td>    
    <td align="center"><%# string.Format("{0:yyyy-MM-dd HH:mm}", DataBinder.Eval(Container.DataItem, "BeginTime"))%></td>    
    <td align="center"><%# string.Format("{0:yyyy-MM-dd HH:mm}", DataBinder.Eval(Container.DataItem, "EndTime"))%></td>
    <td align="left"><%# ((WF_TaskSurrogate)Container.DataItem).WFBill.Name %></td>    
    <td align="center"><%# ((WF_TaskSurrogate)Container.DataItem).SurrogateEmployee.UserName %></td>
    <td align="center"><%# GetText(DataBinder.Eval(Container.DataItem, "Status")+"") %></td>
    <td align="center">
        <%# GetLinkButton(DataBinder.Eval(Container.DataItem, "ID") + "", DataBinder.Eval(Container.DataItem, "Status")+"")%>
    </td>
  </tr>  
  </ItemTemplate>
  </asp:Repeater>
</table>
</div>
</div>

</asp:Content>

